﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestTCPServer
{
    class RequestHandlerFactory : CPPEI.Net.TCP.IRequestHandlerFactory
    {
        public CPPEI.Net.TCP.IRequestHandler Create(byte scenario, byte command)
        {
            if (command == TestTCPContract.Command.Scene1.Cmd1)
            {
                return new RequestHandler1();
            }
            return null;
        }
    }
}
